Trivial fixes for a couple of xenlinux compile warnings.
authorakw27@arcadians.cl.cam.ac.uk <akw27@arcadians.cl.cam.ac.uk>
Mon, 15 Aug 2005 13:50:39 +0000 (13:50 +0000)
committerakw27@arcadians.cl.cam.ac.uk <akw27@arcadians.cl.cam.ac.uk>
Mon, 15 Aug 2005 13:50:39 +0000 (13:50 +0000)
Signed-off-by: <andrew.warfield@cl.cam.ac.uk>
linux-2.6-xen-sparse/arch/xen/kernel/reboot.c
linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c

index 585c94e282a1e24613566aab4c27fadd25490a26..d11eb8987a9abe8d3ca45a26639b42973bef0dc2 100644 (file)
@@ -15,6 +15,7 @@
 #include <asm-xen/linux-public/suspend.h>
 #include <asm-xen/queues.h>
 #include <asm-xen/xenbus.h>
+#include <asm-xen/ctrl_if.h>
 
 #define SHUTDOWN_INVALID  -1
 #define SHUTDOWN_POWEROFF  0
index 742c3fd46c392ea9986643636112edfe9431d29b..0c72a408bf37fd9f59519737932b3bb9e44f4a24 100644 (file)
@@ -386,7 +386,10 @@ static void network_tx_buf_gc(struct net_device *dev)
         mb();
     } while (prod != np->tx->resp_prod);
 
+#ifdef CONFIG_XEN_NETDEV_GRANT_TX
   out: 
+#endif
+
     if (np->tx_full && ((np->tx->req_prod - prod) < NETIF_TX_RING_SIZE)) {
         np->tx_full = 0;
         if (np->user_state == UST_OPEN)